<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  
</body>
<script>

  // const arr = [9, 5, 6, 7, 2]
  // const obj = {name:"admin",age:18}

  // 展开之后的后果

  // 数组内放多个数据，展开之后，得到的就是多个数据

  // 什么位置能放多个数据呢？
    // 数组内
    // 某些能接收多个参数的函数

  // const arr2 = [ ...arr ];

  // console.log(arr);
  // console.log(arr2);
  // console.log(arr2 === arr);

  // console.log( ...arr );

  // console.log(Math.min( ...arr ))

  // const obj2 = { ...obj };
  // console.log(obj)
  // console.log(obj2)
  // console.log(obj2 === obj)




  const a = [2,3];
  const b = [4,5];
  const c = [6,7];

  const arr = [...a, ...b, ...c];
  console.log(arr);

  const o1 = {a:10};
  const o2 = {a:20};
  const o3 = {c:30};
  const obj = {...o1, ...o2, ...o3};
  console.log(obj);


  
</script>
</html>